package com.api.response;

abstract public class BaseResponse<T> {
    private  String code;
    private  String message;
    private  T  result;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public T getResult() {
        return result;
    }

    public boolean isSuccess() {
        if(code!=null&&code.equals("1")){

            return  true;
        }
        return false;
    }
}
